package com.example.javanewwork.service.impl;

import com.example.javanewwork.entity.Repair;
import com.example.javanewwork.mapper.RepairMapper;
import com.example.javanewwork.service.RepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class RepairServiceImpl implements RepairService {


    @Autowired
    private RepairMapper repairMapper;

    @Override
    public void add(Repair repair) {

        String buyer = repair.getBuyer();
        String deviceName = repair.getDeviceName();
        String phoneNumer = repair.getPhoneNumber();
        String faultDetails = repair.getFaultDetails();

        repairMapper.add(buyer,deviceName,phoneNumer,faultDetails);
    }
}
